package Demo2;

public class Teacher {
    //属性的定义：教师编号、教师姓名、性别、密码、用户类型
    String teacherNo;
    String teacherName;
    String gender;
    String password;
    String userType;
    //查看信息
    public void displayTeacherInfo(){
        System.out.println("教师信息如下（依次是教师编号、教师姓名、教师性别、用户类型）："+teacherNo+","+teacherName+","+gender+","+userType);
    }
}
